<?php

return [
    'bootstrap' => ['queue'],
    'components' => [
        'db' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=localhost;dbname=rfid',
            'username' => 'rfid',
            'password' => 'Re971bxZ1^wc5wX7#7f54tNy61N3',
            'charset' => 'utf8mb4',
            'tablePrefix' => 'yb_',
            'enableSchemaCache' => true,
            'schemaCacheDuration' => 3600,
        ],
        'log' => [
            'targets' => [
                [
                    'class' => 'yii\log\FileTarget',
                    'levels' => ['info', 'error', 'warning'],
                    'logFile' => '@app/runtime/queue/' . date('Ym/d') . '.log',
                    'logVars' => ['_GET', '_POST'],
                    'categories' => ['queue'],
                ]
            ],
        ],
        'security' => [
            'public_key' => 'ZDwJ662qLL&#$N&C',
            'secret_key' => md5('key'),
        ],
        'queue' => [
            'class' => \yii\queue\beanstalk\Queue::class,
            'host' => '127.0.0.1',
            'port' => 11300,
            'tube' => 'queue',
        ],
        //阿里大鱼短信
        'dysms' => [
            'accessKeyId' => 'LTAIYEsjKMGcypPp',
            'accessKeySecret' => 'Xaf9jst9vinVmdYiJQzA0XivZ6Xn1d',
        ],
    ],
];
